package com.woniuxy.web;

import com.woniuxy.pojo.GuangChang;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.validation.Valid;

@Controller
@RequestMapping("/room")
public class Json415 {
    @RequestMapping("/add")
    public ModelAndView addClazzRoom(@RequestBody @Valid GuangChang g){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("ggg", "传入的Map集合是："+g);
        modelAndView.setViewName("sbView");
        return modelAndView;
    }
}
